import request from '@/utils/request'

// 查询油罐列表
export function listInfo(query,data) {
  return request({
    url: '/ometer/list',
    method: 'post',
    params: query,
    data: data
  })
}

// 删除油罐
export function delOmeter(ometerId) {
  return request({
    url: '/ometer/delete',
    method: 'get',
    params: { ometerId }
  })
}
// 新增油罐
export function addOmeter(query) {
  return request({
    url: '/ometer/save',
    method: 'post',
    data: query
  })
}
// 编辑油罐
export function updateOmeter(query) {
  return request({
    url: '/ometer/update',
    method: 'post',
    data: query
  })
}

// 通过油站id获取抢号信息
export function getStationGun(stationId) {
  return request ({
    url: `/stationOillGun/info/ometer/oilGun?stationId=${stationId}`,
    method: 'get'
  })
}

// 获取油品列表
export function getOilList(station) {
  return request ({
    url: `/stationOillGun/info/ometer/oilName`,
    method: 'post',
    data: station
  })
}
